import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Graphics;
import java.awt.event.ActionEvent;
import java.awt.image.BufferedImage;
import java.awt.image.RenderedImage;
import java.io.File;
import java.io.IOException;

import javax.imageio.ImageIO;
import javax.swing.AbstractAction;
import javax.swing.BoxLayout;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JProgressBar;
import javax.swing.JScrollPane;


@SuppressWarnings("serial")
public class Main extends JFrame {

	public static Main mainFrame;
	
	public SavePanel save_panel;
	public LocationChooser location_chooser;
	public MinecraftMap minecraft_map;
	public EditorPanel editor_panel;

	public Main()
	{
		super("MazeMaker");

		Container cp=getContentPane();
		
		setLayout(new BoxLayout(cp,BoxLayout.PAGE_AXIS));
		
		save_panel=new SavePanel();
		location_chooser=new LocationChooser();
		editor_panel=new EditorPanel();
		minecraft_map=null;
		
		cp.add(save_panel);
		cp.add(location_chooser);
		cp.add(editor_panel);

		pack();
		setVisible(true);
		setDefaultCloseOperation(EXIT_ON_CLOSE);
	}

	public static void main(String[] args) {
		mainFrame=new Main();
	}
}
